package com.dmp.onlinestore.model.dto;

public class ProductBean {
	
	private int id;
	private String name;
	private String performers; // should eventually be a collection of Performer objects
	private String descShort;
	private String descLong;
	private String category;
	private String subcategory;
	private double price;
	private int rating;
	
	
	public ProductBean () {	
	}

	public ProductBean(int id, String name, String shortDescription, String longDescription, String category, String subCategory, double price, int rating) {
		setId(id);
		setName(name);
		setDescShort(shortDescription);
		setDescShort(shortDescription);
		setDescLong(longDescription);
		setCategory(category);
		setSubcategory(subCategory);
		setPrice(price);
		setRating(rating);
		
	}
    // Copy constructor.
    public ProductBean(ProductBean product) {
	  this();
	  setCategory(product.getCategory());
	  setDescLong(product.getDescLong());
	  setName(product.getName());
	  setDescShort(product.getDescShort());
	  setId(product.getId());
	  setPerformers(product.getPerformers());
	  setPrice(product.getPrice());
	  setRating(product.getRating());
	  setSubcategory(product.getSubcategory());
    }

	public String toString() {
		String str = 
			"Id: \"" + getId() + "\"\r\n" +
			"   Name:        \"" + getName()        + "\"\r\n" +
			"   Category:    \"" + getCategory()    + "\"\r\n" +
			"   Subcategory: \"" + getSubcategory() + "\"\r\n" +
			"   Price:       \"" + getPrice()       + "\"\r\n" +
			"   Rating:      \"" + getRating()      + "\"\r\n" +
			"   DescShort:   \"" + getDescShort()   + "\"\r\n" +
			"   DescLong:    \"" + getDescLong()    + "\"\r\n" +
			"   Performers:  \"" + getPerformers()  + "\"";
		return str;
	}

	public int getId () {
		return this.id;
	}
	public void setId(int value) {
		this.id = value;
	}
	public String getName () {
		return this.name;
	}
	public void setName (String value) {
		this.name = value;
	}
	public String getDescShort () {
		return this.descShort;
	}
	public void setDescShort(String value) {
		this.descShort = value;
	}
	public String getDescLong() {
		return this.descLong;
	}
	public void setDescLong(String value) {
		this.descLong = value;
	}
	public String getPerformers() {
		return performers;
	}

	public void setPerformers(String performers) {
		this.performers = performers;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public String getSubcategory() {
		return subcategory;
	}

	public void setSubcategory(String subcategory) {
		this.subcategory = subcategory;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public int getRating() {
		return rating;
	}

	public void setRating(int rating) {
		this.rating = rating;
	}
}
